import i18n from '@/language/index'

export const t = i18n.global.t

export default function LoginModel(account, password, code, id) {
    this.account = account;
    this.password = password;
    this.code = code;
    this.id = id;

    this.rules = {
        account: [
            {required: true, message: t('login.10001'), trigger: 'blur'},
        ],
        password: [
            {required: true, message: t('login.10003'), trigger: 'blur'}
        ]
    }
}